import {bgInit as curve} from '@/utils/bg/curve'
import {bgInit as pipe} from '@/utils/bg/pipe'
import {bgInit as emitLine} from '@/utils/bg/emitLine'

const bgs = [curve,pipe,emitLine];

const renderBg = function (id) {
	let base = Math.random();
	let index = Math.floor(base*3);
	bgs[index] && bgs[index](id);
}

export {
	renderBg
}